Skip to content

refactor(university): refine breadcrumbs & semester overview design w… - #115

Merged
nitinmohan18 merged 1 commit into
mainfrom
branch-sel
Jul 26, 2026
Merged

refactor(university): refine breadcrumbs & semester overview design w…#115
nitinmohan18 merged 1 commit into
mainfrom
branch-sel

Conversation

@nitinmohan18

@nitinmohan18 nitinmohan18 commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

…ith centered layout

Summary by CodeRabbit

  • New Features

    • Added friendlier breadcrumb labels for branches, semesters, and common abbreviations.
    • Added a highlighted current-page breadcrumb with an icon and improved navigation styling.
    • Introduced redesigned semester overview layouts for common and specialized branches.
    • Added semester numbers, descriptions, curriculum links, badges, and clearer year information.
  • Style

    • Refreshed semester overview typography, icons, spacing, animations, and card interactions.
    • Simplified page background styling.

@vercel

vercel Bot commented Jul 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hyper-learning-tech Ready Ready Preview, Comment Jul 26, 2026 4:22am

@coderabbitai

coderabbitai Bot commented Jul 26, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Updates RGPV breadcrumb formatting and styling, rebuilds the semester overview data model and layouts for common and non-common branches, and removes min-h-screen from the branch page container.

Changes

RGPV UI refresh

Layer / File(s) Summary
Breadcrumb formatting and rendering
components/breadcrumbs.tsx
Adds mapped path labels, special semester formatting, consolidated route suppression, and updated breadcrumb styling with a highlighted current page.
Semester data model and header
components/university/semester-overview.tsx
Replaces the semester data structure with enriched year and semester metadata and updates the overview header content, styling, and animations.
Semester branch layouts
components/university/semester-overview.tsx, app/rgpv/[branch]/page.tsx
Introduces separate common and non-common branch layouts with updated cards, links, and calls to action, while removing min-h-screen from the branch page.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

Suggested reviewers: imuniqueshiv, imuniqueshiv

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main changes to breadcrumbs and semester overview styling/design.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch branch-sel

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nitinmohan18
nitinmohan18 merged commit 801369f into main Jul 26, 2026
3 checks passed
@nitinmohan18
nitinmohan18 deleted the branch-sel branch July 26, 2026 04:24
@github-actions

Copy link
Copy Markdown

🎉 Congratulations @nitinmohan18!

Thank you for contributing to HyperLearningTech.

Your pull request has been successfully merged into main.

📦 Merge Summary

🚀 Keep Contributing

  • Follow the CONTRIBUTING.md guidelines.
  • Keep each Pull Request focused on a single feature or fix.
  • Run formatting, linting, type checking, and a production build before opening a PR.

Thank you for helping make HyperLearningTech better.

Happy Coding! 🚀

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
components/university/semester-overview.tsx (2)

119-124: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win

Heading levels skip from h1 directly to h3.

The section has a single h1 (line 119) and then jumps to h3 for card titles (lines 160, 197), with no intervening h2. This breaks the document heading outline for screen-reader users navigating by heading level.

♿ Proposed fix: promote card titles to h2
-                    <h3 className="mt-6 text-2xl font-bold text-foreground group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">
+                    <h2 className="mt-6 text-2xl font-bold text-foreground group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">
                       {sem.name}
-                    </h3>
+                    </h2>
-                  <h3 className="text-xl font-bold text-foreground">
+                  <h2 className="text-xl font-bold text-foreground">
                     {yearBlock.year}
-                  </h3>
+                  </h2>

Also applies to: 160-162, 197-199

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@components/university/semester-overview.tsx` around lines 119 - 124, Promote
the card title headings in the semester overview from h3 to h2 so the document
outline progresses from the existing h1 to h2 without skipping levels. Update
both card-title elements associated with the headings around the visible h1,
preserving their text and styling.

135-138: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Card reveal animation now triggers on mount instead of on scroll into view.

Both card containers switched from whileInView/viewport={{ once: true }} to initial/animate, so the ~0.45–0.65s transition completes almost immediately after mount. For non-common branches these cards sit below the hero and are typically off-screen on load, so by the time a user scrolls to them the "reveal" effect has already finished, defeating its purpose.

Also applies to: 180-186

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@components/university/semester-overview.tsx` around lines 135 - 138, Restore
scroll-triggered reveal behavior for both card containers in the semester
overview, including the block around the motion.div at the referenced second
location. Replace mount-only initial/animate transitions with whileInView and a
once-only viewport configuration, preserving the existing opacity, vertical
offset, duration, and delay values.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@components/university/semester-overview.tsx`:
- Around line 119-124: Update the gradient utility on the heading in the
semester overview, and all other bg-gradient-to-* usages in the codebase, to
Tailwind v4’s corresponding bg-linear-to-* classes while preserving each
gradient direction and color configuration.

---

Nitpick comments:
In `@components/university/semester-overview.tsx`:
- Around line 119-124: Promote the card title headings in the semester overview
from h3 to h2 so the document outline progresses from the existing h1 to h2
without skipping levels. Update both card-title elements associated with the
headings around the visible h1, preserving their text and styling.
- Around line 135-138: Restore scroll-triggered reveal behavior for both card
containers in the semester overview, including the block around the motion.div
at the referenced second location. Replace mount-only initial/animate
transitions with whileInView and a once-only viewport configuration, preserving
the existing opacity, vertical offset, duration, and delay values.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c1b9c268-961b-472d-98b3-5a8dc825a987

📥 Commits

Reviewing files that changed from the base of the PR and between 73d6cb7 and 52d2a0b.

📒 Files selected for processing (3)
  • app/rgpv/[branch]/page.tsx
  • components/breadcrumbs.tsx
  • components/university/semester-overview.tsx

Comment on lines +119 to +124
<h1 className="text-3xl font-extrabold tracking-tight sm:text-4xl md:text-5xl text-foreground leading-[1.15]">
Semester Wise{" "}
<span className="bg-gradient-to-r from-blue-600 via-indigo-600 to-cyan-500 bg-clip-text text-transparent dark:from-blue-400 dark:via-indigo-300 dark:to-cyan-400">
Learning Path
</span>
</h2>
</h1>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "== package manifests / tailwind deps =="
for f in package.json pnpm-lock.yaml yarn.lock package-lock.json bun.lockb; do
  if [ -f "$f" ]; then
    echo "--- $f ---"
    if [ "$f" = "package.json" ]; then
      node -e 'const p=require("./package.json"); console.log(JSON.stringify({dependencies:p.dependencies,devDependencies:p.devDependencies},null,2))' | rg -n 'tailwind|vite|next|react' || true
    else
      rg -n 'tailwindcss|tailwindcss-variants|postcss|cssnano|`@tailwind`|css' "$f" | head -80 || true
    fi
  fi
done

echo
echo "== config files mentioning Tailwind =="
git ls-files | rg '(^|/)(tailwind\.config\.(js|cjs|mjs|ts)|postcss\.config\.(js|cjs|mjs)|app\.css|globals\.css|.global\.css|components\.css)$' || true

echo
echo "== target file excerpt =="
if [ -f components/university/semester-overview.tsx ]; then
  wc -l components/university/semester-overview.tsx
  sed -n '100,135p' components/university/semester-overview.tsx
fi

echo
echo "== occurrences of gradient classes =="
rg -n 'bg-gradient-to-|bg-linear-to-|from-[^ ]+ via-[^ ]+ to-[^ ]+' components app src . --glob '!node_modules' --glob '!dist' --glob '!build' || true

Repository: imuniqueshiv/HyperLearningTech

Length of output: 50386


🌐 Web query:

Tailwind CSS v4 bg-linear-to-r bg-gradient-to-r renamed background gradients utilities documentation

💡 Result:

In Tailwind CSS v4, the background gradient utility classes were renamed to align with native CSS gradient functions [1][2]. The v3 class bg-gradient-to-r has been replaced by bg-linear-to-r [1][3][4]. Key details regarding this change: - Renaming Logic: The bg-gradient-* prefix was changed to bg-linear-* to better match the underlying native CSS linear-gradient() function [1][2]. This also creates a consistent naming convention alongside the new bg-radial-* and bg-conic-* utilities introduced in v4 [1][4][2]. - Compatibility: The legacy bg-gradient-to-* classes are no longer supported in v4 [1][4]. - Functionality: While the class names changed, the associated color stop utilities (from-*, via-*, to-*) continue to work identically to how they functioned in v3 [1][4]. - New Features: Tailwind v4 expands gradient capabilities by allowing linear gradients to accept angles (e.g., bg-linear-45) and supporting interpolation mode modifiers (e.g., /srgb, /oklch) to control color blending [2]. To migrate from v3 to v4, you should replace all instances of bg-gradient-to- with bg-linear-to- [3][4]. Automated upgrade tools generally handle this, though developers should manually check for dynamically built class strings that may not be caught by static analysis [1].

Citations:


🌐 Web query:

Tailwind CSS v4 bg-linear-to-r text-transparent bg-clip-text gradient text example

💡 Result:

In Tailwind CSS v4, the utility class naming for linear gradients was updated from the v3 bg-gradient-to-* syntax to bg-linear-to-* to better align with the native CSS linear-gradient() function [1][2]. To create gradient text in Tailwind CSS v4, you combine the linear gradient utility, color stop utilities, bg-clip-text to crop the background to the text's shape, and text-transparent to make the text color transparent so the background gradient shows through [3][4][5]. Here is a complete example of gradient text using Tailwind v4 syntax:

Gradient Text

Key Components: - bg-linear-to-r: Defines the linear gradient direction (left to right) [6][1]. - from-{color} and to-{color}: Define the starting and ending colors of the gradient [6][1]. - bg-clip-text: Clips the background image to the shape of the text [3][5]. - text-transparent: Sets the text color to transparent, revealing the background gradient underneath [7][5]. For more complex gradients, you can use intermediate color stops (e.g., via-purple-500) or specify precise percentage positions (e.g., from-10%, via-30%, to-90%) [6][1]. Tailwind v4 defaults to using OKLCH color interpolation for smoother, more vibrant gradients [1][8].

Citations:


Update Tailwind v4 gradient classes to bg-linear-to-*.

This project is using Tailwind/PostCSS 4.3.1, where the linear gradient utility is bg-linear-to-r; bg-gradient-to-r is v3 syntax and will not generate the intended background image. The same migration applies here and to the other bg-gradient-to-* classes in the codebase.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@components/university/semester-overview.tsx` around lines 119 - 124, Update
the gradient utility on the heading in the semester overview, and all other
bg-gradient-to-* usages in the codebase, to Tailwind v4’s corresponding
bg-linear-to-* classes while preserving each gradient direction and color
configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant